from django.urls import path
from rest_framework.routers import DefaultRouter

from course import views

urlpatterns = [
    path('allcate/', views.CategoryView.as_view()),
    path('cate/', views.NowCate.as_view()),
    path('direction/', views.Direction.as_view()),
    path('childcate/', views.ChildCate.as_view()),
    path('list/', views.CourseList.as_view()),
    path('detail/', views.Detail.as_view()),
    path('hotword/', views.GetHotWord.as_view()),
]
router = DefaultRouter()
router.register('hot', views.HotWordView, basename='hot')
urlpatterns += router.urls
